#include<iostream>  
using namespace std;  
void main(){  
	int a;
	int n=1;
	for(a=1;a<=10;a++){
 n= n * a ;
	 cout << a << "! = " << n << "\n" ;
}
}